package com.huilian.iotbox.admin.wap.service.impl;

import com.huilian.iotbox.admin.wap.dao.PayCompanyDao;
import com.huilian.iotbox.admin.wap.service.PayCompanyService;
import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.po.PayCompany;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 谢洛涛
 * @date 2021/6/21 16:48
 */
@Service
public class PayCompanyServiceImpl implements PayCompanyService {
    @Resource
    private PayCompanyDao payCompanyDao;
    @Override
    public PayCompany findDefaultPayCompany(Integer type) {
        return payCompanyDao.findDefaultPayCompany(type);
    }

    @Override
    public ServerResponse findPayCompanyList(Integer status) {
        return ServerResponse.createBySuccess(payCompanyDao.findPayCompanyList(status));
    }
}
